<%@ Control Language="C#" AutoEventWireup="true" CodeFile="SnapErrorGrid.ascx.cs" Inherits="Admin_SnapErrorGrid" %>
<asp:SqlDataSource ID="snapErrorSource" runat="server" ConflictDetection="CompareAllValues"
    ConnectionString="<%$ ConnectionStrings:fbConnectionString %>" DeleteCommand="DELETE FROM [Errors] WHERE [EID] = @original_EID AND [Page] = @original_Page AND [Method] = @original_Method AND [Params] = @original_Params AND [Time] = @original_Time AND [Line] = @original_Line AND [Message] = @original_Message"
    InsertCommand="INSERT INTO [Errors] ([Page], [Method], [Params], [Time], [Line], [Message]) VALUES (@Page, @Method, @Params, @Time, @Line, @Message)"
    OldValuesParameterFormatString="original_{0}" SelectCommand="SELECT * FROM [Errors] ORDER BY [Page], [Time]"
    UpdateCommand="UPDATE [Errors] SET [Page] = @Page, [Method] = @Method, [Params] = @Params, [Time] = @Time, [Line] = @Line, [Message] = @Message WHERE [EID] = @original_EID AND [Page] = @original_Page AND [Method] = @original_Method AND [Params] = @original_Params AND [Time] = @original_Time AND [Line] = @original_Line AND [Message] = @original_Message">
    <DeleteParameters>
        <asp:Parameter Name="original_EID" Type="Int32" />
        <asp:Parameter Name="original_Page" Type="String" />
        <asp:Parameter Name="original_Method" Type="String" />
        <asp:Parameter Name="original_Params" Type="String" />
        <asp:Parameter Name="original_Time" Type="DateTime" />
        <asp:Parameter Name="original_Line" Type="Int16" />
        <asp:Parameter Name="original_Message" Type="String" />
    </DeleteParameters>
    <UpdateParameters>
        <asp:Parameter Name="Page" Type="String" />
        <asp:Parameter Name="Method" Type="String" />
        <asp:Parameter Name="Params" Type="String" />
        <asp:Parameter Name="Time" Type="DateTime" />
        <asp:Parameter Name="Line" Type="Int16" />
        <asp:Parameter Name="Message" Type="String" />
        <asp:Parameter Name="original_EID" Type="Int32" />
        <asp:Parameter Name="original_Page" Type="String" />
        <asp:Parameter Name="original_Method" Type="String" />
        <asp:Parameter Name="original_Params" Type="String" />
        <asp:Parameter Name="original_Time" Type="DateTime" />
        <asp:Parameter Name="original_Line" Type="Int16" />
        <asp:Parameter Name="original_Message" Type="String" />
    </UpdateParameters>
    <InsertParameters>
        <asp:Parameter Name="Page" Type="String" />
        <asp:Parameter Name="Method" Type="String" />
        <asp:Parameter Name="Params" Type="String" />
        <asp:Parameter Name="Time" Type="DateTime" />
        <asp:Parameter Name="Line" Type="Int16" />
        <asp:Parameter Name="Message" Type="String" />
    </InsertParameters>
</asp:SqlDataSource>
<asp:GridView ID="GridView1" runat="server" AllowPaging="True" AllowSorting="True"
    AutoGenerateColumns="False" DataKeyNames="EID" DataSourceID="snapErrorSource">
    <Columns>
        <asp:CommandField ShowDeleteButton="True" ShowEditButton="True" ShowSelectButton="True" />
        <asp:BoundField DataField="EID" HeaderText="EID" InsertVisible="False" ReadOnly="True"
            SortExpression="EID" />
        <asp:BoundField DataField="Page" HeaderText="Page" SortExpression="Page" />
        <asp:BoundField DataField="Method" HeaderText="Method" SortExpression="Method" />
        <asp:BoundField DataField="Params" HeaderText="Params" SortExpression="Params" />
        <asp:BoundField DataField="Time" HeaderText="Time" SortExpression="Time" />
        <asp:BoundField DataField="Line" HeaderText="Line" SortExpression="Line" />
        <asp:BoundField DataField="Message" HeaderText="Message" SortExpression="Message" />
    </Columns>
</asp:GridView>
